Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRPLDCX-99 Collections #41

Merged
merged 7 commits into from
Oct 25, 2016
Merged

DRPLDCX-99 Collections #41

merged 7 commits into from
Oct 25, 2016

Conversation

goechsler
Copy link
Contributor

This integrate DC-X collections on the entity browser for images.

It only provides "own" collections, as the DC-X API only supports these atm.

The process is rather complicated as there is a lot of communication with DC-X involved:

  1. Retrieve a list of collections and display them as details (say fieldsets)
  2. When a detail is opened the list of documents in the respective collection is retrieved
  3. The documents need to retrieve their respective preview images (used as draggables for DC-X import).

STR:

  • Create a few collections with images, maybe create some sub collections as well.
  • Open the entity image browser on an article
  • find the first level of your collections hierarchie displayed in the collections fieldset
  • click on one of the collection details and watch the images being loaded
  • probably sub collections which can be opened as well

@chrfritsch chrfritsch changed the base branch from 8.x-1.x to 8.x-2.x October 19, 2016 13:04
public function getPreview($id) {
$json = NULL;

if ($params == NULL) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$params is always undefined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. It's safe to remove the if clause.

'q' => [
'_mode' => 'my_usertags',
'type_id' => 'usertagtype-default',
'parent_id#NULL' => $parent_id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$parent_id is always undefined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refering to the docs Thorsten Behn sent me $parent_id is supposed to be an empty string. Just replace it with "".

@chrfritsch
Copy link
Member

I have created a 8.x-2.x into module-dcx-integration for D8.2 compatibility. I have also updated the staging env. So please use the dcx branch of https://github.com/BurdaMagazinOrg/project-dcx-integration

@goechsler goechsler assigned chrfritsch and unassigned goechsler Oct 19, 2016
@chrfritsch chrfritsch force-pushed the DRPLDCX-99/collections branch from 60f28e8 to 821eede Compare October 25, 2016 08:59
@chrfritsch chrfritsch merged commit 173ef19 into 8.x-2.x Oct 25, 2016
@chrfritsch chrfritsch deleted the DRPLDCX-99/collections branch October 25, 2016 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants